import type { ProfileInfo } from "@/types/user";
import { RequestAxios } from "@/utils/RequestAxios";

export const getUserInfoAPI =()=>RequestAxios.get<ProfileInfo>('/member/profile')

// 上传接口
export const updateAvatarAPI = (data: FormData) =>
  RequestAxios.upload('/member/profile/avatar', data)

// 更新用户资料
export const updateUserInfoAPI = (data:ProfileInfo) => RequestAxios.put('/member/profile',data)